package com.computercourse.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description
 * @author Feng.Yuan
 * @date 2020/2/12 2:58 下午
 * @return
 */
@EnableDiscoveryClient
@SpringBootApplication
@EntityScan("com.computercourse.framework.domain.search")//扫描实体类
@ComponentScan(basePackages={"com.computercourse.api"})//扫描接口
@ComponentScan(basePackages={"com.computercourse.search"})//扫描本项目下的所有类
@ComponentScan(basePackages={"com.computercourse.framework"})//扫描common下的所有类
public class SearchApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(SearchApplication.class, args);
    }

}
